package com.mnsq.permission.bean.model;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 周俭
 */
@Data
@Accessors(chain = true)
public class MenuModel extends BaseModel {

    private Long parentId;

    private String name;

    private String url;

    private String perms;

    private Integer type;

    private String icon;

    private Integer orderNum;

    private Byte delFlag = 0;

    /**
     * 非数据库字段
     */
    private String parentName;
    /**
     * 非数据库字段
     */
    private Integer level;
    /**
     * 非数据库字段
     */
    private List<MenuModel> children = new ArrayList<>();
}